/***************************************************************************************************
*                                                                                                  *
* Author: Aliksandr Kravchenko (alexk@genebee.msu.su)                                              *
*                                                                                                  *
***************************************************************************************************/

// $Id: getopt.h 1531 2011-01-21 17:53:49Z antonov $
#ifndef GETOPT_H
#define GETOPT_H


#include <iostream>

using namespace std;

class GetOpt
{
        int     optind;
        char*   next;

        int argc;
        char* const *argv;
        const char* optstring;
public:
        GetOpt(int argc, char* const *argv, const char* optstring);

        int next_opt();

        const char* optarg;     // key value 
};
#endif